from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles

from .dblock import create_dpool
from .jinjapage import view_page  # noqa: F401

dblock = create_dpool("host=localhost dbname=examdb user=examdb", min_size=4)

app = FastAPI()
app.mount("/static", StaticFiles(directory="static"), name="static")
